<h1>Listing medcares</h1>

<table>
  <tr>
    <th>Patient</th>
    <th>Doctor</th>
    <th>Action</th>
    <th>Body</th>
  </tr>

<% @medcares.each do |medcare| %>
  <tr>
    <td><%=h medcare.patient_id %></td>
    <td><%=h medcare.doctor_id %></td>
    <td><%=h medcare.action_id %></td>
    <td><%=h medcare.body %></td>
    <td><%= link_to 'Show', medcare %></td>
    <td><%= link_to 'Edit', edit_medcare_path(medcare) %></td>
    <td><%= link_to 'Destroy', medcare, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New medcare', new_medcare_path %>